package com.yykj.drup.server.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yykj.drup.server.dto.PrescriptionProductDto;
import com.yykj.drup.server.model.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zengg
 * @since 2022-03-10
 */
@Mapper
public interface ProductDao extends BaseMapper<Product> {

    PrescriptionProductDto findProductDtById(Integer productId);

    List<Product> findProductsByCategoryId(Integer categoryId);
}
